const expect=require('chai').expect;

describe('satisfy()',()=>{
    it('return true',()=>{
        expect('10').satisfy((n)=>{return n>0});
    });

    it('return 真值',()=>{
        expect('1').satisfy((n)=>{return n});
    });

    it('return 假值',()=>{
        expect(1).satisfy((n)=>{return n>10});
    });

    it('return undefind',()=>{
        expect(1).satisfy(()=>{});
    });

});